// eslint-disable-next-line import/prefer-default-export
export const renderConfig = {
  planListNo: {
    label: '采购计划编号',
    field: 'planListNo',
    componentName: 'input',
  },

  mdsItemCode: {
    label: '物料编码',
    field: 'mdsItemCode',
    componentName: 'inputModal',
    componentProps: {
      title: '物料编码',
      type: 'materialCode',
      labelName: 'materialCode',
      valueName: 'materialCode',
    },
  },

  millTypeCode: {
    label: '机型',
    field: 'millTypeCode',
    componentName: 'inputModal',
    componentProps: {
      title: '机型',
      type: 'materialCode',
      labelName: 'materialCode',
      valueName: 'materialCode',
      defaultQuery: {
        // 机型
        materialType: '6',
        materialStatus: '1,3',
      },
    },
  },
  batchNo: {
    label: '批次',
    field: 'batchNo',
    componentName: 'input',
  },
};
export const renderKeys = [
  'planListNo',
  'mdsItemCode',
  'millTypeCode',
  'batchNo',
];

export const columns = [
  {
    title: '序号',
    dataIndex: 'index',
    componentName: 'index',
    slotName: 'index',
    width: 150,
  },
  {
    title: '密级',
    dataIndex: 'secretLevelName',
    componentName: 'secretLevel',
    slotName: 'secretLevel',
    width: 150,
  },
  {
    title: '采购计划编号',
    dataIndex: 'planListNo',
    width: 150,
    // 列表展示省略号
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '进度状态',
    dataIndex: 'executionStatusName',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '物料编码',
    dataIndex: 'mdsItemCode',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '物料名称',
    dataIndex: 'mdsItemName',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '机型',
    dataIndex: 'millTypeCode',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '批次',
    dataIndex: 'batchNo',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '架次',
    dataIndex: 'batchFlowNo',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '牌号',
    dataIndex: 'brandNo',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '父型号',
    dataIndex: 'productSuperTypeNo',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '规格',
    dataIndex: 'specification',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '技术条件',
    dataIndex: 'technicalCondition',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '计量单位',
    dataIndex: 'measureUnit',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '订货数量',
    dataIndex: 'planQty',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '变更后订货数量',
    dataIndex: 'chngPlanQty',
    slotName: 'chngPlanQty',
    width: 250,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '计划到货日期',
    dataIndex: 'planArrivalDate',
    width: 250,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '变更后计划到货日期',
    dataIndex: 'chngPlanArrivalDate',
    slotName: 'chngPlanArrivalDate',
    width: 250,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '变更原因',
    dataIndex: 'chngCauseDesc',
    slotName: 'chngCauseDesc',
    width: 250,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '编制人',
    dataIndex: 'editUserName',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '编制日期',
    dataIndex: 'editDate',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '单据状态',
    dataIndex: 'billStatusName',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '拒绝原因',
    dataIndex: 'rejectReason',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '确认退回原因',
    dataIndex: 'sureReturnCause',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '贯彻撤销原因',
    dataIndex: 'exeReturnCause',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '是否采购',
    dataIndex: 'purchaseStateName',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '制造类型',
    dataIndex: 'manufactureType',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '转码机型',
    dataIndex: 'transcodeMachineNo',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '转码图号',
    dataIndex: 'transcodePicNo',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
];
